#include "WorldFactory.h"

#include "SpatialPartitioningFactory.h"

namespace physicsworks {

WorldModel* WorldFactory::instance(const vec3& a, const vec3& b, SpatialPartitioningType s,
	                               const SpatialPartitioningConfig& sc)
{
	SpatialPartitioning* sp = SpatialPartitioningFactory::instance()->instance(s, sc, a, b);
	
	return new WorldModel(a, b, sp);
}

}
